__author__ = 'Winter'


def hello():
    print('hello,world')


hello()


def area(width, height):
    return width * height


print(area(height=3, width=4))


def change(a):
    a = 10


b = 2
change(b)
print(b)


def changeList(myList):
    myList.append([1, 3, 4])
    print(myList)


myList = [2, 45]

changeList(myList)


def twoValues(a, b):
    a = 10
    b.append(1)


twoValues(b=[12, 11], a=1)


def defaultInfo(name, age=10):
    print('name:', name)
    print('age:', age)


defaultInfo(name='1', age=111)


def printMulVal(arg1, *varTuple):
    print("打印输入的参数", end=":")
    print(arg1)
    for var in varTuple:
        print(var)


printMulVal(1)
printMulVal(10, 1023, 23124)

mul= lambda afe, adf: afe * adf

print(mul(3, 5))


if True:
    str1= '111'


printMulVal(str1)

num= 10
def changeGlobalVar():
    global num
    printMulVal(num)
    num = 100
    printMulVal(num)


changeGlobalVar()
printMulVal(num)

def outer():
    num = 12

    def inner():
        nonlocal num
        num = 12130
        printMulVal(num)
    inner()

outer()


